From 07a3fb833c06f9e0dd20b6357f6c26865e22b941 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 3 Apr 2021 22:02:04 -0400 Subject: [PATCH] textlayout: Remove some unnecessary code The same field is set again 2 lines down. --- gtk/gtktextlayout.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c index 05d9fa9b2a..ae6ed3bb31 100644 --- a/gtk/gtktextlayout.c +++ b/gtk/gtktextlayout.c @@ -2632,7 +2632,6 @@ gtk_text_layout_create_display (GtkTextLayout *layout, pango_layout_get_extents (display->layout, NULL, &extents); text_pixel_width = PIXEL_BOUND (extents.width); - display->width = text_pixel_width + display->left_margin + display->right_margin; h_margin = display->left_margin + display->right_margin; h_padding = layout->left_padding + layout->right_padding; -- 2.30.2